package javaer.starter.util;

import javaer.starter.constant.SymbolEnum;

public class ArtifactIdUtil {

    /**
     * 转成依赖版本标签
     * 如：<mysql.version></mysql.version>
     *
     * @param artifactId
     * @return
     */
    public static String toPropertyVersionLabel(String artifactId) {
        return artifactId + ".version";
    }

    /**
     * 转成依赖版本号引用
     * 如：${mysql.version}
     *
     * @param propertyVersionLabel
     * @return
     */
    public static String toVersionRef(String propertyVersionLabel) {
        return SymbolEnum.PLACEHOLDER_START.getSymbol() + propertyVersionLabel + SymbolEnum.PLACEHOLDER_END.getSymbol();
    }
}
